<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>商城登录</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<meta name="format-detection" content="telephone=no">
	<meta name="renderer" content="webkit">
	<meta http-equiv="Cache-Control" content="no-siteapp" />
    <link href="__PUBLIC__/fonts/iconfont.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" href="__PUBLIC__/css/login.css" type="text/css">
</head>
<body>
	
    <div class="logo-boxtitle">
    	<a href="index.html"><img alt="logo" src="__PUBLIC__/images/logobig.png"></a>
    </div>

    <div class="login-banner">
    	<div class="login-main">
    		<div class="login-banner-bg">
    			<img src="__PUBLIC__/images/big.jpg">
    		</div>
    		<div class="login-box">
				<h3 class="title">商城登录</h3>
				<div class="clear"></div>

				<div class="login-form">
				    <form >
                        <!-- 280 pading-left:20 -->
                       
    				        <div class="login_input user-name">
        				        <label for="user"><i class="iconfont icon-zhanghao"></i></label>
                                <!-- 260 pading:0 20px;     -->
        				    	<input type="text" name="user_name" id="user_name" placeholder="邮箱/手机/用户名" value="">

    				    	</div>
    				    	<div class="login_input password">
        				        <label for="password"><i class="iconfont icon-iconfontlock"></i></label>
        				    	<input type="password" name="user_pass" id="user_pass" placeholder="请输入密码" value="">
    				    	</div>
                        
				    </form>
					
					<br/>
                    
                    <div class="login-links">
                    	<label for="remember-me" style="color:#000;">
                    	    <input type="checkbox" id="remember-me">记住密码
                    	</label>
                    	<a href="#" class="am-fr">忘记密码</a>
                    	<a href="{:U('home/user/register')}" class="zcnext am-fr am-btn-default">注册</a>
                    	<br/>
                    </div>

                    <div class="am-cf">
                    	<input type="submit" id="login" name="" class="am-btn am-btn-primary am-btn-sm"  value="登录">
                    </div>

                    <div class="partner">
                    	<h3>合作账号</h3>
                    	<div class="am-btn-group">
                    		<li>
                    		    <a href="#">
                    		        <i class="iconfont icon-QQ"></i>
                    		            <span>QQ登录</span>
                    		    </a>
                    		</li>
                    		<li>
                    		    <a href="#">
                    		        <i class="iconfont icon-xinlang"></i>
                    		            <span>微博登录</span>
                    		    </a>
                    		</li>
                    		<li>
                    		    <a href="#">
                    		        <i class="iconfont icon-weixin"></i>
                    		            <span>微信登录</span>
                    		    </a>
                    		</li>
                    	</div>
                    </div>

				</div>
    			
    		</div>
    	</div>
    </div>

    <div class="footer">
        <div class="footer-hd">
			<p>
				<a href="#">老芝麻科技  　<b>|</b></a>
				<a href="#">　商城首页  　<b>|</b></a>
				<a href="#">　支付宝  　<b>|</b></a>
				<a href="#">　物流</a>
			</p>
    	</div>
        
        <div class="footer-fd">
	    	<p>
	    		<a href="#">关于老芝麻</a>
	    		<a href="#">合作伙伴</a>
	    		<a href="#">联系我们</a>
	    		<a href="#">网站地图</a>
	    		<em>© 2017-0426 laozhima.com 版权所有. 更多模板 <a href="http://www.cssmoban.com/" target="_blank" title="模板之家">模板之家</a> - Collect from <a href="http://www.cssmoban.com/" title="网页模板" target="_blank">网页模板</a></em>
	    	</p>
    	</div>
    </div>

</body>
</html>




<script type="text/javascript" src="__PUBLIC__/js/jquery-2.1.0.js"></script>
<script type="text/javascript">
    //当点击 #add_user 按钮时，触发事件  提交数据
    $('#login').on('click',function(){

        var url = "{:U('login_success')}";
        var data = {
            user_name:$('#user_name').val(),
            user_pass:$('#user_pass').val(),
        }

        $.post(url,data,function(res){
            // console.log(res);
            alert(res.msg);
            window.location.href = 'http://zhima.dev/index.php';
        });
        
    });


</script>